entry: g_object_notify*( when we change the invisible char
authorBenjamin Otte <otte@redhat.com>
Tue, 19 Apr 2011 17:54:08 +0000 (19:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 19 Apr 2011 20:18:19 +0000 (22:18 +0200)
gtk/gtkentry.c

index ce53b1b97eec96a3410b2d90e4796ed47151f3d2..c130158f2a6230a7291668df23c640a996c83156 100644 (file)
@@ -4539,7 +4539,15 @@ gtk_entry_update_cached_style_values (GtkEntry *entry)
   priv->interior_focus = interior_focus;
 
   if (!priv->invisible_char_set)
-    priv->invisible_char = find_invisible_char (GTK_WIDGET (entry));
+    {
+      gunichar ch = find_invisible_char (GTK_WIDGET (entry));
+
+      if (priv->invisible_char != ch)
+        {
+          priv->invisible_char = ch;
+          g_object_notify (G_OBJECT (entry), "invisible-char");
+        }
+    }
 }
 
 static void